how to solve a two variable system